class ManagerException(Exception):
  pass


class AuthorizationException(ManagerException):
  def __init__(self, message="Authorization failed. Check your credentials."):
    super().__init__(message)


class ConnectionException(ManagerException):
  pass


class RemotePathNotFound(Exception):
  pass


class RequestFailed(Exception):
  def __init__(self, request, result, error):
    self.request = request
    self.result = result
    self.error = error

  def __str__(self):
    return "RequestFailed(request=%s,\nresult=%s)" % (
        self.request, self.result)
